package com.example.books.Dao;

import com.example.books.Pojo.BorrowDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface BorrowDao {

    List<BorrowDO> getBorrow();

    boolean setBorrow(@Param(value = "map")Map<String, Object> map);

    boolean updateBorrow(@Param(value = "map") Map<String,Object> map);

    boolean deleteBorrow(@Param(value = "map") Map<String,Object> map);

    List<BorrowDO> getBook(@Param(value = "map") Map<String,Object> map);

    boolean update(@Param(value = "map") Map<String,Object> map);

}
